package com.gdcp.mapper;

import com.gdcp.beans.Category;
import com.gdcp.beans.OrderItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

@Repository
public interface OrderItemMapper {
    List<OrderItem> findPageBreakByCondition(Map<String, Object> param);

    List<OrderItem> findPageBreakByConditionByShopId(Integer shop_id);

    int insert(OrderItem cartItem);

    List<OrderItem> queryOrderItemByOid(@Param("order_no") String id);

    int removeByPrimaryKey(Integer id);

    int updateByPrimaryKey(OrderItem orderItem);

    OrderItem getInformation(Integer id);

    List<OrderItem> searchInformation(Map<String, Object> model);

    List<OrderItem> findAll(Map<String, Object> model);

    List<Category> searchSizeByShopId(Integer shop_id);

    List<Category> searchInformationByShopId(Map<String, Object> model);
}
